package com.medical.user.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import lombok.Data;

/**
 * JWT配置类
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {
    /**
     * 密钥
     */
    private String secret = "medical-user-service-jwt-secret-key";

    /**
     * token有效期（默认24小时）
     */
    private long expiration = 86400;

    /**
     * token前缀
     */
    private String tokenPrefix = "Bearer ";

    /**
     * header key
     */
    private String header = "Authorization";
} 